package sample.tangocho.service;

import sample.tangocho.dataaccess.TangochoDao;
import sample.tangocho.dataaccess.TangochoDaoImpl;
import android.content.Context;

public class CreateTangochoServiceImpl implements CreateTangochoService {
	
	private TangochoDao tangochoDao;
	
	public CreateTangochoServiceImpl(Context context) {
		
		// TODO DI
		tangochoDao = new TangochoDaoImpl(context);
	}

	@Override
	public long createTangocho(String title) {
		return tangochoDao.insertTangocho(title);
	}

}
